class Synapse:
    def __init__(self, weight=0.1):
        """初始化突触参数"""
        self.weight = weight  # 突触权重

    def transmit(self, spike):
        """传递突触电流"""
        return self.weight * spike
